#ifndef __MCINCIDENTCONSTRAINTVISUAL_H_
#define __MCINCIDENTCONSTRAINTVISUAL_H_

#include <MCConstraintVisual.h>
#include <IGripPoint.h>

class MCIncidentContraint;

class MCIncidentConstraintVisual : public MCConstraintVisual
{
public:

    MCIncidentConstraintVisual(ICanvas *presenter, MCIncidentContraint *constraint);

    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override;
    QPainterPath shape() const override;

private:

    MCPoint2D transformed() const;

private:

    IGripPoint *_grip;
    MCVector2 _offset;

};

#endif // !__MCINCIDENTCONSTRAINTVISUAL_H_
